<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>{$title}</h2>
        <div><a href="{:U('')}&warn_batch={:I('warn_batch')}&export=1" class="btn btn-default">导出</a></div>
    </div>
    <div class="cf">
        <!-- 高级搜索 -->
        <div class="search-form fr cf">
            <div class="sleft">
            </div>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>BIN</th>
                <th>商品名[规格]</th>
                <th>批次</th>
                <th>报损量</th>
                <th>采购量</th>
                <th>总报损比例</th>
                <th>出库量</th>
                <th>出库报损比例</th>
                <th>库存量</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.BIN}</td>
                        <td>
                            {$vo.pname}
                        [{$vo.spec}]
                        </td>
                        <td>{$vo.warn_batch}</td>
                        <td>{$vo.loss_cnt}</td>
                        <td>{$vo.in_cnt}{$vo.unit}</td>
                        <td>{$vo.loss_in}</td>
                        <td>{$vo.out_cnt}</td>
                        <td>{$vo.loss_out}</td>
                        <td>{$vo.inventoryProductNum}{$vo.unit}</td>
                        <td>
                            <a href="{:U('lossproductdetail')}&warn_batch={$vo.warn_batch}&BIN={$vo.BIN}" class="btn btn-default">明细</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        highlight_subnav('{:U('Loss/index')}');
    </script>
</block>
